<script lang="ts" setup>
const props = defineProps({
  coreMain: {
    type: Object,
    default: () => ({
      return:{}
    })
  }
})
</script>

<template>
  <div class="map-title-view">
    <div>
      <!-- 左括号 -->
      <img src="../../../../assets/bi/map-title-left-t.png"/>
    </div>
    <div class="text-view">
      <div>{{ coreMain.label }}</div>
      <div class="text">{{ coreMain.value }}</div>
      <div>{{ coreMain.unit }}</div>
    </div>
    <div>
      <!-- 右括号 -->
      <img src="../../../../assets/bi/map-title-right-t.png"/>
    </div>
  </div>
</template>

<style scoped lang="less">
.map-title-view {
  font-family: Source Han Sans;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;


  .text-view {
    display: flex;
    align-items: flex-end;
    padding: 20px;
  }


  .text {
    font-size: 48px;
    padding: 0 10px;
    color: #06D4F4;
  }
}
</style>